import { platform } from "./MD/GMDBase/platform"

let gcfg: any = {}

var ProjectID = "${ProjectName}" //
var Version = "1_0_1"// Local

function BuildConfig(ProjectID, version) {
  var re = platform.cfg
  var ossAddr = re.Oss
  re["ProjectID"] = ProjectID
  re["Version"] = Version
  re["ServerListVersionUrl"] = `${ossAddr}/gameweb/${ProjectID}/Config${version}_v.xml`//服务器配置文件版本号，用于减少oss流量
  re["ServerListUrl"] = `${ossAddr}/gameweb/${ProjectID}/Config${version}.xml`//服务器配置文件
  re["PubConfigUrl"] = `${ossAddr}/gameweb/Pub/${ProjectID}_PubConfg.xml`
  return re
}

gcfg = BuildConfig(ProjectID, Version)

export {
  gcfg
}

